#include "TcpServer.hpp"

namespace se {

TcpServer::TcpServer(const char *ip, unsigned short port) 
: _acceptor(ip, port), _epollEventLoop(_acceptor)
, OnTcpConnected(_epollEventLoop.OnTcpConnected)
, OnTcpMessageReceived(_epollEventLoop.OnTcpMessageReceived)
, OnTcpClosed(_epollEventLoop.OnTcpClosed) {}

void TcpServer::start() {
    this->_epollEventLoop.start();
}

void TcpServer::stop() {
    
}

}  // namespace se